<template>
    <div class="newscon">
        <p>新闻页面信息:</p>
        <h2>标题：{{list.title}}</h2>
        <div class="contentTxt" v-html="list.content"></div>
    </div>
</template>

<script>
export default {
    data () {
        return {
            msg: '',
            list: []
        }
    },
    mounted () {
        //this.msg = this.$route.params.aid;
        let url = 'http://www.phonegap100.com/appapi.php?a=getPortalArticle&aid='+this.$route.params.aid;
        this.$http.get(url).then((response)=> {
            console.log(response);
            this.list = response.body.result[0];
        },function(err) {
            console.log(err);
        })
    }
}
</script>

<style>

</style>
